﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

using Framework.Graphics;
using Framework.Graphics.Light.Shadow;
using Framework.GameStateManagment;
using Framework.GameObjectManagment;
using Framework.GameObjectManagment.GameObjects;

namespace Framework.Physics.ShootControl
{
    class ShootManager
    {
        private Shoot[] _shots = new Shoot[100];
        private SpriteBatch SB;

        public Shoot[] Shots
        {
            get { return _shots; }
            set { _shots = value; }
        }

        public void Init(SpriteBatch sb)
        {
            SB = sb;

            for (int i = 0; i < _shots.Length; i++)
            {
                _shots[i] = new Shoot();
            }
        }

        public void Update()
        {
            for (int i = 0; i < _shots.Length; i++)
            {
                _shots[i].Update();
            }
        }

        public void Draw()
        {
            for (int i = 0; i < _shots.Length; i++)
            {
                _shots[i].Draw(SB);
            }
        }
    }
}
